import request from '@/utils/request'

// 创建用户套餐
export function createSeekUserPackage(data) {
  return request({
    url: '/car/seek-user-package/create',
    method: 'post',
    data: data
  })
}

// 更新用户套餐
export function updateSeekUserPackage(data) {
  return request({
    url: '/car/seek-user-package/update',
    method: 'put',
    data: data
  })
}

// 删除用户套餐
export function deleteSeekUserPackage(id) {
  return request({
    url: '/car/seek-user-package/delete?id=' + id,
    method: 'delete'
  })
}

// 获得用户套餐
export function getSeekUserPackage(id) {
  return request({
    url: '/car/seek-user-package/get?id=' + id,
    method: 'get'
  })
}

// 获得用户套餐分页
export function getSeekUserPackagePage(query) {
  return request({
    url: '/car/seek-user-package/page',
    method: 'get',
    params: query
  })
}

// 导出用户套餐 Excel
export function exportSeekUserPackageExcel(query) {
  return request({
    url: '/car/seek-user-package/export-excel',
    method: 'get',
    params: query,
    responseType: 'blob'
  })
}
